package com.qyc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qyc.pojo.Hurdles;
import com.qyc.service.HurdlesService;
import com.qyc.mapper.HurdlesMapper;
import com.qyc.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author qinyc
* @description 针对表【manager_hurdles(栏圈信息表)】的数据库操作Service实现
* @createDate 2023-06-25 11:23:47
*/
@Service
public class HurdlesServiceImpl extends ServiceImpl<HurdlesMapper, Hurdles>
    implements HurdlesService{
    //注入栏圈Mapper层对象
    @Autowired
    private HurdlesMapper hurdlesMapper;

    /**
     * @Author qinyc
     * @Description  查询所有栏圈信息
     * @version: v1.0
     * @Date 14:00 2023/6/26
     **/
    @Override
    public ResponseResult selectAllHurdles() {
        //查询所有栏圈信息
        List<Hurdles> hurdles = hurdlesMapper.selectList(null);
        //返回统一响应数据
        return ResponseResult.success(hurdles);
    }
}




